Author – Sarvesh Pandey, Cloud Engineer
Introduction:
SQL Data Sync is a service built on Azure SQL Database that lets you synchronize the data you select bi-directionally across multiple databases, both on-premises and in the cloud.
You can setup, Data Sync environment without writing a single line of code through Azure Portal.
Weather your Database is in Azure or in On-Premise Server, you can easily sync your data in Azure SQL Database using the Data Sync.
SQL Data Sync is easily customizable, you can scale, add or remove database at any point.
Use Cases:
This is one of the Use Case,
We had client, whose already on cloud and there requirement was to have a duplicate copy of database in different but in should be in a Sync so that there company in that region can perform DML changes.
We can use Geo-replication as the secondary database would in Read only mode. It will be in Sync but the DML changes can’t be performed.
To overcome this issue, Azure SQL Data Sync roles comes here, we can setup sync and it support read and write mode as well.
Prerequisites:
- Azure Subscriptions
- Two Azure SQL Server
- Two Azure SQL Database
- Set Firewall Rule and Allow Azure Services
- SQL Server Management Tool